package com.hkedou.yuanhuo.shiro.redis;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Description;
import redis.clients.jedis.Protocol;

@Configuration
@ConfigurationProperties(prefix = "hkedou.token.redis")
public class RedisConf {


    /* @Description: redis连接地址*/
    private String host;

    /* @Description: port*/
    private int port;


    /* @Description: database*/
    private int database = 2;

    /* @Description: timeout 单位秒*/
    private int timeout = Protocol.DEFAULT_TIMEOUT;


    private String password;

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }


    public int getDatabase() {
        return database;
    }

    public void setDatabase(int database) {
        this.database = database;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
